package com.test.shiro;


import java.util.StringJoiner;

public class User {
    private Integer id;
    private String username;
    private String password;

    /**
     * 获取 id.
     *
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置 id.
     *
     * @param id id
     */
    public void setId(final Integer id) {
        this.id = id;
    }

    /**
     * 获取 username.
     *
     * @return username
     */
    public String getUsername() {
        return username;
    }

    /**
     * 设置 username.
     *
     * @param username username
     */
    public void setUsername(final String username) {
        this.username = username;
    }

    /**
     * 获取 password.
     *
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置 password.
     *
     * @param password password
     */
    public void setPassword(final String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", User.class.getSimpleName() + "[", "]")
                .add("id=" + id)
                .add("username='" + username + "'")
                .add("password='" + password + "'")
                .toString();
    }
}